package com.liangchen.astestpanel;

import android.app.Application;
import android.os.Build;
import android.util.Log;

import androidx.annotation.RequiresApi;

import com.liangchen.asperf.AsPerfManager;
import com.liangchen.asstability.AsStabilityManager;
import com.liangchen.astools.AsManager;

public class TestApplication extends Application {
    private static final String TAG = "TestApplication";

    @RequiresApi(api = Build.VERSION_CODES.KITKAT)
    @Override
    public void onCreate() {
        Log.w(TAG,"TestApplication onCreate");
        super.onCreate();
        AsManager.init(this);
        AsStabilityManager.getInstance().init(this);
        AsPerfManager.getInstance().init(this);
        this.registerActivityLifecycleCallbacks(AsPerfManager.getInstance().getFpsTracer());
    }
}
